package cn.xanderye.mdblog.service;

import cn.xanderye.mdblog.base.BaseService;
import cn.xanderye.mdblog.entity.Comment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author hbxz
 * @date 2018/12/20 0020
 */
@FeignClient(name = "mdblog-service", path = "comment")
public interface CommentService extends BaseService<Comment> {
    /**
     * 插入一条评论
     * @param comment
     */
    @PostMapping("insertComment")
    void insertComment(@RequestBody Comment comment);

    /**
     * 逻辑删除一条评论
     * @param comment
     */
    @PostMapping("deleteComment")
    void deleteComment(@RequestBody Comment comment);
}
